package org.feng.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author feng
 */
@TableName("sys_menu")
@Data
@EqualsAndHashCode
public class Menu implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "父id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "权限标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "路径")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "图标")
    @TableField("source")
    private String source;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "分类")
    @TableField("category")
    private Integer category;

    @ApiModelProperty(value = "外链")
    @TableField("link")
    private Integer link;

    @TableLogic
    @ApiModelProperty(value = "删除")
    @TableField("deleted")
    private Integer deleted;

    @ApiModelProperty(value = "缓存")
    @TableField("keep_alive")
    private Integer keepAlive;
}
